using System;
using System.Collections.Generic;
using System.Text;

namespace AdaptiveHelpDesk.AUI_Model_Components.Watcher.Combo_box
{
    class PerformanceModels
    {

        #region VARIABLES

            decimal KLMPredictedTime = 2.65m;

        #endregion


        #region KLM DIFFERENCE

            //Look & Mental Operator (LM) + Travel (T) + Click(C)
            //= 1.35 + 1.1 + 0.2 = 2.65

        public decimal getKLMDifference(decimal actualTime)
        {
            return (decimal)Math.Abs(KLMPredictedTime - actualTime);
        }

        #endregion


        #region KLM RATIO

            public decimal getKLMRatio(decimal actualTime)
            {
                if (actualTime.Equals(0))
                {
                    return 0;
                }
                else
                {
                    return decimal.Round((decimal)(KLMPredictedTime / actualTime), 3);
                }
            }

        #endregion


    }
}
